package com.cloudm.technician.ui.modules.cloudm_box.debug_result

import com.cloudm.technician.data.model.DebugResultInfo
import com.cloudm.technician.ui.base.BasePresenter
import com.cloudm.technician.ui.base.BaseView

/**
 * 作者: wesley
 * 时间: 2017/12/21
 * 描述: 调试结果协议接口
 */
interface DebugResultContract {

    interface View : BaseView {

        fun loadSuccess(info: DebugResultInfo)

        fun loadFailure(errorMsg: String)

        fun setBtnEnabled()

        fun setBtnNotEnabled()

        fun setBtnTextDebug()

        fun setBtnTextNotPass()

        fun setBtnTextNext()

        fun showDebugInfoEmpMsg()

        fun openUploadPicActivity()

        fun finishSelf()

        fun showLocationEmpMsg()

        fun openMapPreviewActivity()

        fun isLocationLoaded(): Boolean

        fun reloadLocation()

    }

    interface Presenter : BasePresenter {


        fun getDebugResultInfo(id: Int, sn: String, lng: Double, lat: Double, recordId: String?)

        fun openActivityOrDebug(tag: String, id: Int, sn: String, lng: Double, lat: Double,
                                recordId: String?)


        fun onLocationClick(tag: String)

        fun countDown()
    }
}